package com.youlai.boot.system.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.system.model.entity.Banner;
import com.youlai.boot.system.model.form.BannerForm;
import com.youlai.boot.system.model.query.BannerPageQuery;
import com.youlai.boot.system.model.vo.BannerPageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 用户分页列表
 *
 * @return
 */
public interface BannerService extends IService<Banner> {
    IPage<BannerPageVO> listPagedBanners(BannerPageQuery queryParams);
    IPage<BannerPageVO> listPaged2Banners(BannerPageQuery queryParams);

    /**
     * 新增banner
     *
     * @param bannerForm 表单对象
     * @return
     */
    boolean saveBanner(BannerForm bannerForm);

    /**
     * 获取banner详情
     *
     * @param bannerId 部门ID
     * @return 部门详情
     */
    BannerForm getBannerForm(Long bannerId);


    /**
     * 修改banner
     * @param bannerId   bannerId
     * @param bannerForm banner表单对象
     * @return
     */
    boolean updateBanner(Long bannerId, BannerForm bannerForm);


    /**
     * 删除banner
     * @param idsStr bannerID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteBanners(String idsStr);

}